package com.celesea.auth.position.v1.controller.request;

import com.celesea.framework.vo.DictionaryVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @author JackYuan
 * @create 2017-10-29 22:06
 */

@ApiModel(value = "岗位新增")
public class PostRequest {

    @NotNull
    @Length(min = 1, max = 20)
    @ApiModelProperty(value = "名称", required = true)
    private String name;

    @NotNull
    @Length(min = 3, max = 20)
    @ApiModelProperty(value = "编码")
    private String code;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @Length(min = 0, max = 50)
    @ApiModelProperty(value = "描述")
    private String description;

    @NotNull
    @ApiModelProperty(value = "所属部门")
    private DictionaryVo dept;

    @NotNull
    @ApiModelProperty(value = "是否继承到下级:[0：否，1：是]", allowableValues = "0,1", required = true)
    private Byte extend;

//    @NotNull
    @ApiModelProperty(value = "是否上级可以见:[0：否，1：是]", allowableValues = "0,1", required = true)
    private Byte bubble;

    @NotNull
    @ApiModelProperty(value = "启停用状态：[0：停用，1：启用]", allowableValues = "0,1")
    private Byte statusFlag;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public DictionaryVo getDept() {
        return dept;
    }

    public void setDept(DictionaryVo dept) {
        this.dept = dept;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Byte getExtend() {
        return extend;
    }

    public void setExtend(Byte extend) {
        this.extend = extend;
    }

    public Byte getBubble() {
        return bubble;
    }

    public void setBubble(Byte bubble) {
        this.bubble = bubble;
    }

    public Byte getStatusFlag() {
        return statusFlag;
    }

    public void setStatusFlag(Byte statusFlag) {
        this.statusFlag = statusFlag;
    }

}
